﻿using FB.Membership.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace FB.Security.FBH2
{

    public enum Menu : int
    {
        [Description("申请保函")]
        Apply = 1000,
        [Description("保函审批")]
        Approve = 1010,
        [Description("保函協議書")]
        Agreement = 1020,
        [Description("财务部审批")]
        FeeConfirm = 1030,
        [Description("保全保函")]
        Contract = 1040,
        [Description("項目狀態")]
        ChangeStatus = 1050,
        [Description("ViewPermission")]
        ViewPermission = 2010,

    }



    #region 申请保函
    [SecurityFlag((int)Menu.Apply)]
    public enum Apply : long
    {
        [Description("查看")]
        View = 1,
        [Description("添加")]
        Create = 2,
        [Description("修改")]
        Modify = 4,
        [Description("删除")]
        Delete = 8

    }
    #endregion

    #region 保函审批
    [SecurityFlag((int)Menu.Approve)]
    public enum Approve : long
    {
        [Description("查看")]
        View = 1,
        [Description("審批")]
        Approve = 2
    }
    #endregion

    #region 保函協議書
    [SecurityFlag((int)Menu.Agreement)]
    public enum Agreement : long
    {
        [Description("查看")]
        View = 1,
        [Description("打印")]
        Print = 2
    }
    #endregion

    #region 财务部审批
    [SecurityFlag((int)Menu.FeeConfirm)]
    public enum FeeConfirm : long
    {
        [Description("查看")]
        View = 1,
        [Description("确认收費")]
        Ensure = 2
    }
    #endregion


    #region 保全保函
    [SecurityFlag((int)Menu.Contract)]
    public enum Contract : long
    {
        [Description("查看")]
        View = 1,
        [Description("打印")]
        Print = 2

    }
    #endregion


    #region 項目狀態
    [SecurityFlag((int)Menu.ChangeStatus)]
    public enum ChangeStatus : long
    {
        [Description("完成項目")]
        Complete = 1,
        [Description("審批後修改數據")]
        AmendAfterApproval = 2
    }
    #endregion

    #region View Permission
    [SecurityFlag((int)Menu.ViewPermission)]
    public enum ViewPermission : long
    {
        [Description("檢視部門資料")]
        ViewDept = 1,
        [Description("檢視全部")]
        ViewAll = 2,
        [Description("檢視关注")]
        ViewAlert = 4,

    }
    #endregion
}
